Don't dh_auto_clean, and run dh_clean first
authorRob Browning <rlb@defaultvalue.org>
Sun, 23 Oct 2016 15:39:57 +0000 (10:39 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 24 Oct 2016 17:06:44 +0000 (12:06 -0500)
Since we don't build in the source tree, we shouldn't clean there
either, and let dh_clean take care of its bits before we stomp around.

debian/rules

index cca8fdce9cc48cf6b89a4ce9e8d2c33eb74fd0ea..e7f2b9997aba057e7c6032481157e1034bf2dd84 100755 (executable)
@@ -619,7 +619,11 @@ override_dh_testdir:
 override_dh_fixperms:
        dh_fixperms -X$(movemail_bin)
 
+override_dh_auto_clean: $(persistent_autogen_files)
+       true
+
 override_dh_clean: $(persistent_autogen_files)
+       dh_clean
        rm -rf \
          aclocal.m4 \
          build-aux/ar-lib \
@@ -649,4 +653,3 @@ override_dh_clean: $(persistent_autogen_files)
          src/config.in \
          src/stamp-h1 src/stamp-h.in
        rm -f $(nonpersistent_autogen_files)
-       dh_clean